package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.impl.ShopServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/shop/status")
public class UserShopController {

    @Autowired
    private ShopServiceImpl shopService;

    @GetMapping
    public Result<Integer> status() {
        Integer status = shopService.getStatus();
        return Result.success(status);
    }
}
